package sw6.digipecs.widget;

import android.content.Context;
import android.graphics.Bitmap;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;

public class BitmapImageView extends ImageView {

	public BitmapImageView(Context context, Bitmap bmap) {
		super(context);
		
		setImageBitmap(bmap);
		setScaleType(ImageView.ScaleType.CENTER);
		setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
	}

}
